import { action, makeAutoObservable, observable } from "mobx";

export default class Test {
  constructor() {
    makeAutoObservable(this, {
      testTitle: observable,
      setTitle: action.bound,
    });
  }

  testTitle: string = "";

  setTitle(title: string): void {
    console.log("title");
    console.log(title)
    console.log(this);
    this.testTitle = title;
  }
}
